com.supermap.ar.areffect.record
Class EffectViewRecorder
- java.lang.Object
-
- com.supermap.ar.areffect.record.EffectViewRecorder
-
- All Implemented Interfaces:
- EffectView.OnUpdateListener
- Direct Known Subclasses:
- AREffectViewRecorder
public class EffectViewRecorder extends java.lang.Object implements EffectView.OnUpdateListener
Recorder for special effect viewRecords views and instant postures
- Since:
- 10.1.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classEffectViewRecorder.BuilderRecorder constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static EffectViewRecorder.Builderbuilder(EffectView effectView)Create Builderjava.lang.StringgetFolderPath()Gets the folder pathRecorderStatusgetRecorderStatus()Gets recorder statusjava.lang.StringgetRecordName()booleanlinearCalculate(java.lang.String sourceCsvFilePath, java.lang.String destCsvFilePath)Use linear interpolation to optimize the parameters of CSV files and generate new CSV filesvoidonUpdate()Frame-updating listenervoidprepare()Prepare to record The function will generate a new video name according to the time stamp for each preparation After executing start -> stop next time, saves the records as the namevoidreset()Re-set Turns the status from PREPARED or RECORDING to INITIAL directlyvoidsetRecordName(java.lang.String videoName)Sets the prefix of the video namevoidstart()Starts recording.voidstop()Stop recording Status turns into PREPARED
-
-
-
Method Detail
-
builder
public static EffectViewRecorder.Builder builder(EffectView effectView)
Create Builder- Parameters:
effectView- Special-effect view- Returns:
-
onUpdate
public void onUpdate()
Frame-updating listener
-
getRecorderStatus
public RecorderStatus getRecorderStatus()
Gets recorder status- Returns:
RecorderStatusstatus types
-
prepare
public void prepare()
Prepare to recordThe function will generate a new video name according to the time stamp for each preparation After executing start -> stop next time, saves the records as the name
-
start
public void start()
Starts recording.Status turns into RECORDING
Starts to record videos Notes: If the path of video folder hasn't been set, returns false If the path of video folder has been set but the folder name not set
-
stop
public void stop()
Stop recordingStatus turns into PREPARED
-
reset
public void reset()
Re-setTurns the status from PREPARED or RECORDING to INITIAL directly
-
setRecordName
public void setRecordName(java.lang.String videoName)
Sets the prefix of the video name- Parameters:
videoName- video nameExecution order is before prepare() After setting setVideoName every time, you can prepare()=>start()=>stop() to record a new video
-
getFolderPath
public java.lang.String getFolderPath()
Gets the folder path- Returns:
- The folder path.
-
linearCalculate
public boolean linearCalculate(java.lang.String sourceCsvFilePath, java.lang.String destCsvFilePath)Use linear interpolation to optimize the parameters of CSV files and generate new CSV files- Parameters:
sourceCsvFilePath- CSV Specifies the absolute path of the source filedestCsvFilePath- Specifies the absolute path of the CSV target file- Returns:
- Status value
-
getRecordName
public java.lang.String getRecordName()
-
-